/*
 * JBoss, Home of Professional Open Source
 * Copyright 2011, Red Hat, Inc. and individual contributors
 * by the @authors tag. See the copyright.txt in the distribution for a
 * full listing of individual contributors.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */

package org.mobicents.protocols.ss7.cap.api.primitives;

/**
*

DateAndTime ::= OCTET STRING (SIZE(7))
-- DateAndTime is BCD encoded. The year digit indicating millenium occupies bits
-- 0-3 of the first octet, and the year digit indicating century occupies bits
-- 4-7 of the first octet.
-- The year digit indicating decade occupies bits 0-3 of the second octet,
-- whilst the digit indicating the year within the decade occupies bits 4-7 of
-- the second octet.
-- The most significant month digit occupies bits 0-3 of the third octet,
-- and the least significant month digit occupies bits 4-7 of the third octet.
-- The most significant day digit occupies bits 0-3 of the fourth octet,
-- and the least significant day digit occupies bits 4-7 of the fourth octet.
-- The most significant hours digit occupies bits 0-3 of the fifth octet,
-- and the least significant digit occupies bits 4-7 of the fifth octet.
-- The most significant minutes digit occupies bits 0-3 of the sixth octet,
-- and the least significant digit occupies bits 4-7 of the sixth octet.
-- The most significant seconds digit occupies bits 0-3 of the seventh octet,
-- and the least seconds significant digit occupies bits 4-7 of the seventh octet.
-- For the encoding of digits in an octet, refer to the timeAndtimezone parameter.
 
* 
* @author sergey vetyutnev
* 
*/
public interface DateAndTime {

	public byte[] getData();

	public int getYear();

	public int getMonth();

	public int getDay();

	public int getHour();

	public int getMinute();

	public int getSecond();

	public void setYear(int year);

	public void setMonth(int month);

	public void setDay(int day);

	public void setHour(int hour);

	public void setMinute(int minute);

	public void setSecond(int second);

}
